<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>B网站访问</title>
</head>
<script src="http://lib.sinaapp.com/js/jquery/2.2.4/jquery-2.2.4.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {

    $.ajax({
      url : "http://www.jml.com:8080/FromServlet?userName=644064",
      type : "GET",
      async : false,
      dataType : "jsonp",//数据类型为jsonp
      //服务端回调时候的参数
      jsonp : "jsonpCallback",
      success : function(data) {
        alert(data["userName"]);
      },
      error : function() {
        alert('fail');
      }
    });

  });
function meth(){

}

</script>

<body>
	<img alt="" src="http://www.jml.com:8080/imgs/log.png">
</body>
</html>